package com.xll.config;

import com.qiniu.storage.Region;
import com.qiniu.storage.UploadManager;
import com.qiniu.util.Auth;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BeanConfig {
    @Bean
   public UploadManager uploadManager(){
       com.qiniu.storage.Configuration cfg=new com.qiniu.storage.Configuration(Region.region0());
       return  new UploadManager(cfg);
   }
}
